/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdMetadataManagement;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 元数据管理-数据管理业务对象 isfd_metadata_management
 *
 * @author Lion Li
 * @date 2024-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdMetadataManagement.class, reverseConvertGenerate = false)
public class IsfdMetadataManagementBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 业务场景定义id，父id
     */
    @NotNull(message = "业务场景定义id，父id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long businessId;

    /**
     * 子业务场景定义id
     */
    @NotNull(message = "子业务场景定义id", groups = {AddGroup.class, EditGroup.class})
    private Long childBusinessId;

    /**
     * 要素库id
     */
    @NotNull(message = "要素库id", groups = {AddGroup.class, EditGroup.class})
    private Long databaseId;

    /**
     * 业务场景名称
     */
    @NotBlank(message = "业务场景名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String businessName;

    /**
     * 要素数据库类型，材料库、算法库、参数库等等
     */
    @NotBlank(message = "要素数据库类型，材料库、算法库、参数库等等不能为空", groups = {AddGroup.class, EditGroup.class})
    private String databaseType;

    /**
     * 数据所属者id
     */
    @NotBlank(message = "数据所属者id不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dataOwnerId;

    /**
     * 数据所属者名称
     */
    @NotBlank(message = "数据所属者名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dataOwnerName;

    /**
     * 数据安全级别，高、中、低
     */
    @NotBlank(message = "数据安全级别，高、中、低不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dataSafeLevel;

    /**
     * 数据保留政策，永久、十年、一年
     */
    @NotBlank(message = "数据保留政策，永久、十年、一年不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dataRetentionPolicy;

    /**
     * 源文件名称
     */
    @NotBlank(message = "源文件名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileName;

    /**
     * 源文件类型，excel
     */
    @NotBlank(message = "源文件类型，excel不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileType;

    /**
     * 上传的文件地址
     */
    @NotBlank(message = "上传的文件地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fileUrl;

    /**
     * 入库总数数量
     */
    @NotNull(message = "入库总数数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inventoryCount;

    /**
     * 数据质量id
     */
    @NotNull(message = "数据质量id", groups = {AddGroup.class, EditGroup.class})
    private String dataQualityId;

    /**
     * 数据质量
     */
    @NotNull(message = "数据质量", groups = {AddGroup.class, EditGroup.class})
    private String dataQuality;

    /**
     * 映射字段，JSONArray格式
     */
    @NotNull(message = "映射字段", groups = {AddGroup.class, EditGroup.class})
    private String mapFields;
}
